package cn.lefull.enums;

/**
 * 系统错误码枚举
 * @author created by Singer email:313402703@qq.com
 * @time 2018/9/29
 * @description
 */
public enum MessageCode {


    SUCCESS("200","成功"),
    PARAM_ERROR("400","参数格式错误"),
    ERROR("500","业务处理异常"),
    ERROR_SMALL_APP_NOT_EXIST("500","APP小程序不存在!"),
    ERROR_GET_WEIXIN_LOSE("500","获取微信授权失败!"),
    ERROR_PARSING_WEIXIN_FAILURE("500","获取微信授权失败!"),
    ERROR_TENANT_FAILURE("500","没有用户信息!"),
    ERROR_ORDER_FAILURE("500","没有订单信息!"),
    ERROR_ORDER_GOODS_FAILURE("500","订单中没有商品信息!"),
    ERROR_ORDER_BYUSERID_FAILURE("500","订单中没有用户信息!"),
    ERROR_ORDER_ACT_NUM_FAILURE("500","所购商品超过限购数量!"),
    ERROR_ORDER_EXCEL_FAILURE("500","订单导出失败!"),
    ERROR_EXCEL_FAILURE("500","上传文件格式不正确"),
    ERROR_EXCEL_ROW_FAILURE("500",""),
    ERROR_SEND_GOODS_FAILURE("500","商品发货数量与订单中不符,请先核对后再发货"),
    ERROR_ORDER_OVERDUE("500","订单已经过期!"),
    ERROR_ORDER_PAY_FAILURE("500","订单支付失败!"),
    LOGIN_ERROR_CODE("404","登录失效,需要验证登录");

    private String code;

    private String message;

    private MessageCode(String code, String message){
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
